#include<stdio.h>
void exchange(int *x,int *y)
{
	int m=*x;
	*x=*y;
	*y=m;
}
int main()
{
	int a=0,b=0;
	scanf("%d%d",&a,&b);
	exchange(&a,&b);
	printf("%d %d",a,b);
}
